// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/index.css'
import 'mavon-editor/dist/css/index.css'
import 'mavon-editor/dist/markdown/github-markdown.min.css'

import date from './utils/date'

import Layout from '~/layouts/Layout.vue'

export default function (Vue, { router, head, isClient }) {
  Vue.use(ElementUi)

  Vue.filter('date', date)

  // Set default layout as a global component
  Vue.component('Layout', Layout)
}
